package com.gpnu.crm.domain;

import java.util.HashMap;
import java.util.Map;

import com.gpnu.crm.util.JSONUtil;

import lombok.Data;

@Data
public class Department {
	  private String name;
	  private String sn;
	  protected Long id;
	 
	  public String getJson() {
	    Map<String, Object> map = new HashMap<String, Object>();
	    map.put("id", this.id);
	    map.put("name", this.name);
	    map.put("sn", this.sn);
	    return JSONUtil.toJSONString(map);
	  }
}
